package com.xxxx.blog.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.xxxx.blog.entity.Article;

import java.util.List;

public interface ArticleService extends IService<Article> {

    int create(Article article);

    int delete(Integer id);

    int update(Article article);

    PageInfo<Article> query(Article article);

    List<Article> top(Article article, Integer top);

    Article detail(Integer id);

    int count(Article article);

    PageInfo<Article> queryByChannelId(Article article);

}
